<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新增用例</title>
    <link href="/static/css/controls.css" rel="stylesheet"/>
    <link href="/static/css/engine.css" rel="stylesheet">
    <script src="/bower_components/requirejs/require.js" data-main="/static/app.js"
            data-bootstrap-modules="'system2/component/jdbc/DataSourceController'"></script>
</head>
<body ng-controller="DataSourceController" style="height: auto">
<div class="engine-popup">
    <form name="DataSourceModelForm"  g-validator="DataSourceModel_Save" data-invalid-msg="tooltipMessenger">
        <input type="hidden" name="projectId" ng-model="dataSourceModel.projectId"/>
        <input type="hidden" name="projectCode" ng-model="dataSourceModel.projectCode"/>

        <div class="attribute-form-group">
            <div class="attribute-form-group-l">名&nbsp;&nbsp;&nbsp;&nbsp;称:</div>
            <div class="attribute-form-group-r">
                <input type="text" name="datasourceName" ng-model="dataSourceModel.datasourceName" />
            </div>
            <div class="clear"></div>
        </div>
        <div class="attribute-form-group">
            <div class="attribute-form-group-l">地 &nbsp;&nbsp;&nbsp;址:</div>
            <div class="attribute-form-group-r">
                <input type="text" name="url" ng-model="dataSourceModel.url" />
            </div>
            <div class="clear"></div>
        </div>
        <div class="attribute-form-group">
            <div class="attribute-form-group-l">用户名:</div>
            <div class="attribute-form-group-r">
                <input type="text" name="username" ng-model="dataSourceModel.username" />
            </div>
            <div class="clear"></div>
        </div>
        <div class="attribute-form-group">
            <div class="attribute-form-group-l">密&nbsp;&nbsp;&nbsp;&nbsp;码:</div>
            <div class="attribute-form-group-r">
                <input type="text" name="password" ng-model="dataSourceModel.password" />
            </div>
            <div class="clear"></div>
        </div>
        <div class="tck-line"></div>
        <div class="tck-b">
            <button type="button" class="engine-btn-default" pj-per="{{projectId}}|1" ng-click="submit()">确认</button>
            <button type="button" class="engine-btn-default" ng-click="cancel()">取消</button>
        </div>
    </form>
</div>
</body>
</html>